home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
You can browse this item here: fix013
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 74 68 65 | 73 65 61 73 21 6e 66 6f |From the|seas!nfo|
|00000010| 74 69 73 20 53 61 74 2c | 20 31 30 20 4a 75 6c 20 |tis Sat,| 10 Jul |
|00000020| 39 33 20 30 31 3a 33 37 | 3a 33 32 20 45 45 54 0a |93 01:37|:32 EET.|
|00000030| 52 65 63 65 69 76 65 64 | 3a 20 62 79 20 6b 72 69 |Received|: by kri|
|00000040| 74 6f 6e 2e 55 55 43 50 | 20 28 56 31 2e 31 36 2f |ton.UUCP| (V1.16/|
|00000050| 41 6d 69 67 61 29 0a 09 | 69 64 20 41 41 30 30 30 |Amiga)..|id AA000|
|00000060| 30 30 3b 20 53 61 74 2c | 20 31 30 20 4a 75 6c 20 |00; Sat,| 10 Jul |
|00000070| 39 33 20 30 31 3a 33 37 | 3a 33 32 20 45 45 54 0a |93 01:37|:32 EET.|
|00000080| 52 65 63 65 69 76 65 64 | 3a 20 62 79 20 74 68 65 |Received|: by the|
|00000090| 73 65 61 73 2e 6e 74 75 | 61 2e 67 72 3b 20 46 72 |seas.ntu|a.gr; Fr|
|000000a0| 69 2c 20 39 20 4a 75 6c | 20 39 33 20 32 31 3a 35 |i, 9 Jul| 93 21:5|
|000000b0| 30 3a 35 34 20 2b 30 33 | 30 30 0a 52 65 63 65 69 |0:54 +03|00.Recei|
|000000c0| 76 65 64 3a 20 62 79 20 | 69 63 61 72 6f 73 2e 6e |ved: by |icaros.n|
|000000d0| 74 75 61 2e 67 72 20 3b | 20 46 72 69 2c 20 39 20 |tua.gr ;| Fri, 9 |
|000000e0| 4a 75 6c 20 39 33 20 32 | 31 3a 34 39 3a 32 30 20 |Jul 93 2|1:49:20 |
|000000f0| 2b 30 33 30 30 0a 4d 65 | 73 73 61 67 65 2d 49 64 |+0300.Me|ssage-Id|
|00000100| 3a 20 3c 39 33 30 37 30 | 39 31 38 34 39 2e 41 41 |: <93070|91849.AA|
|00000110| 30 36 38 35 30 40 69 63 | 61 72 6f 73 2e 6e 74 75 |06850@ic|aros.ntu|
|00000120| 61 2e 67 72 3e 0a 44 61 | 74 65 3a 20 46 72 69 2c |a.gr>.Da|te: Fri,|
|00000130| 20 39 20 4a 75 6c 20 31 | 39 39 33 20 32 31 3a 34 | 9 Jul 1|993 21:4|
|00000140| 39 3a 31 39 20 2b 30 33 | 30 30 20 28 45 45 54 20 |9:19 +03|00 (EET |
|00000150| 44 53 54 29 0a 58 2d 4d | 61 69 6c 65 72 3a 20 45 |DST).X-M|ailer: E|
|00000160| 4c 4d 20 5b 76 65 72 73 | 69 6f 6e 20 32 2e 34 20 |LM [vers|ion 2.4 |
|00000170| 50 4c 32 31 5d 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |PL21].Mi|me-Versi|
|00000180| 6f 6e 3a 20 31 2e 30 0a | 43 6f 6e 74 65 6e 74 2d |on: 1.0.|Content-|
|00000190| 54 79 70 65 3a 20 74 65 | 78 74 2f 70 6c 61 69 6e |Type: te|xt/plain|
|000001a0| 3b 20 63 68 61 72 73 65 | 74 3d 55 53 2d 41 53 43 |; charse|t=US-ASC|
|000001b0| 49 49 0a 43 6f 6e 74 65 | 6e 74 2d 54 72 61 6e 73 |II.Conte|nt-Trans|
|000001c0| 66 65 72 2d 45 6e 63 6f | 64 69 6e 67 3a 20 37 62 |fer-Enco|ding: 7b|
|000001d0| 69 74 0a 43 6f 6e 74 65 | 6e 74 2d 4c 65 6e 67 74 |it.Conte|nt-Lengt|
|000001e0| 68 3a 20 33 35 39 34 0a | 46 72 6f 6d 3a 20 4e 69 |h: 3594.|From: Ni|
|000001f0| 63 6b 20 43 2e 20 46 6f | 74 69 73 20 3c 74 68 65 |ck C. Fo|tis <the|
|00000200| 73 65 61 73 2e 6e 74 75 | 61 2e 67 72 21 6e 66 6f |seas.ntu|a.gr!nfo|
|00000210| 74 69 73 3e 0a 54 6f 3a | 20 74 68 65 73 65 61 73 |tis>.To:| theseas|
|00000220| 21 6b 79 72 69 6d 69 73 | 20 28 4b 72 2e 20 4b 79 |!kyrimis| (Kr. Ky|
|00000230| 72 69 6d 69 73 29 0a 53 | 75 62 6a 65 63 74 3a 20 |rimis).S|ubject: |
|00000240| 52 65 3a 20 20 68 66 27 | 73 20 69 6e 73 69 64 65 |Re: hf'|s inside|
|00000250| 20 63 73 67 27 73 20 70 | 72 6f 62 6c 65 6d 20 28 | csg's p|roblem (|
|00000260| 66 77 64 29 0a 0a 46 6f | 72 77 61 72 64 65 64 20 |fwd)..Fo|rwarded |
|00000270| 6d 65 73 73 61 67 65 3a | 0a 20 46 72 6f 6d 20 68 |message:|. From h|
|00000280| 61 6c 74 40 64 73 64 2e | 65 73 2e 63 6f 6d 20 46 |alt@dsd.|es.com F|
|00000290| 72 69 20 4a 75 6c 20 20 | 39 20 30 31 3a 34 32 3a |ri Jul |9 01:42:|
|000002a0| 30 36 20 31 39 39 33 0a | 45 72 72 6f 72 73 2d 54 |06 1993.|Errors-T|
|000002b0| 6f 3a 20 63 6f 72 65 2d | 6f 77 6e 65 72 25 69 74 |o: core-|owner%it|
|000002c0| 63 68 79 40 64 73 64 2e | 65 73 2e 63 6f 6d 0a 45 |chy@dsd.|es.com.E|
|000002d0| 72 72 6f 72 73 2d 54 6f | 3a 20 63 6f 72 65 2d 6f |rrors-To|: core-o|
|000002e0| 77 6e 65 72 25 69 74 63 | 68 79 40 64 73 64 2e 65 |wner%itc|hy@dsd.e|
|000002f0| 73 2e 63 6f 6d 0a 44 61 | 74 65 3a 20 54 68 75 2c |s.com.Da|te: Thu,|
|00000300| 20 38 20 4a 75 6c 20 39 | 33 20 31 33 3a 30 35 3a | 8 Jul 9|3 13:05:|
|00000310| 31 39 20 2d 30 37 30 30 | 0a 4d 65 73 73 61 67 65 |19 -0700|.Message|
|00000320| 2d 49 64 3a 20 3c 39 33 | 30 37 30 38 32 30 30 35 |-Id: <93|07082005|
|00000330| 2e 41 41 31 34 35 36 30 | 40 69 74 63 68 79 3e 0a |.AA14560|@itchy>.|
|00000340| 45 72 72 6f 72 73 2d 54 | 6f 3a 20 63 6f 72 65 2d |Errors-T|o: core-|
|00000350| 6f 77 6e 65 72 25 69 74 | 63 68 79 40 64 73 64 2e |owner%it|chy@dsd.|
|00000360| 65 73 2e 63 6f 6d 0a 52 | 65 70 6c 79 2d 54 6f 3a |es.com.R|eply-To:|
|00000370| 20 63 6f 72 65 40 64 73 | 64 2e 65 73 2e 63 6f 6d | core@ds|d.es.com|
|00000380| 20 28 54 72 61 63 65 43 | 6f 72 65 20 4d 61 69 6c | (TraceC|ore Mail|
|00000390| 69 6e 67 20 4c 69 73 74 | 29 0a 46 72 6f 6d 3a 20 |ing List|).From: |
|000003a0| 43 72 61 69 67 20 4b 6f | 6c 62 20 3c 63 65 6b 40 |Craig Ko|lb <cek@|
|000003b0| 70 72 69 6e 63 65 74 6f | 6e 2e 65 64 75 3e 0a 53 |princeto|n.edu>.S|
|000003c0| 75 62 6a 65 63 74 3a 20 | 52 65 3a 20 20 68 66 27 |ubject: |Re: hf'|
|000003d0| 73 20 69 6e 73 69 64 65 | 20 63 73 67 27 73 20 70 |s inside| csg's p|
|000003e0| 72 6f 62 6c 65 6d 0a 4c | 69 73 74 2d 4e 61 6d 65 |roblem.L|ist-Name|
|000003f0| 3a 20 74 72 61 63 65 63 | 6f 72 65 0a 50 72 65 63 |: tracec|ore.Prec|
|00000400| 65 64 65 6e 63 65 3a 20 | 42 75 6c 6b 0a 41 70 70 |edence: |Bulk.App|
|00000410| 61 72 65 6e 74 6c 79 2d | 54 6f 3a 20 6e 66 6f 74 |arently-|To: nfot|
|00000420| 69 73 40 74 68 65 73 65 | 61 73 2e 6e 74 75 61 2e |is@these|as.ntua.|
|00000430| 67 72 0a 0a 3e 20 49 27 | 76 65 20 62 65 65 6e 20 |gr..> I'|ve been |
|00000440| 74 72 79 69 6e 67 20 74 | 6f 20 66 69 67 75 72 65 |trying t|o figure|
|00000450| 20 6f 75 74 20 74 68 65 | 20 70 72 6f 62 6c 65 6d | out the| problem|
|00000460| 20 74 68 61 74 20 77 61 | 73 20 62 72 6f 75 67 68 | that wa|s brough|
|00000470| 74 20 75 70 0a 3e 20 61 | 62 6f 75 74 20 75 73 69 |t up.> a|bout usi|
|00000480| 6e 67 20 68 65 69 67 68 | 74 66 69 65 6c 64 73 20 |ng heigh|tfields |
|00000490| 69 6e 20 43 53 47 20 6f | 62 6a 65 63 74 73 2e 0a |in CSG o|bjects..|
|000004a0| 3e 20 5b 2e 2e 2e 5d 0a | 3e 20 57 68 61 74 20 61 |> [...].|> What a|
|000004b0| 70 70 65 61 72 73 20 74 | 6f 20 62 65 20 68 61 70 |ppears t|o be hap|
|000004c0| 70 65 6e 69 6e 67 0a 3e | 20 69 73 20 74 68 61 74 |pening.>| is that|
|000004d0| 20 6d 69 6e 64 69 73 74 | 20 69 73 20 62 65 69 6e | mindist| is bein|
|000004e0| 67 20 70 61 73 73 65 64 | 20 69 6e 20 61 73 20 32 |g passed| in as 2|
|000004f0| 2e 30 39 38 37 38 2c 20 | 74 68 65 20 63 61 6c 6c |.09878, |the call|
|00000500| 20 74 6f 20 4f 75 74 4f | 66 42 6f 75 6e 64 73 28 | to OutO|fBounds(|
|00000510| 29 0a 3e 20 66 61 69 6c | 73 20 61 6e 64 20 68 69 |).> fail|s and hi|
|00000520| 74 70 6f 73 20 69 73 20 | 62 65 69 6e 67 20 73 65 |tpos is |being se|
|00000530| 74 20 62 61 63 6b 20 65 | 71 75 61 6c 20 74 6f 20 |t back e|qual to |
|00000540| 72 61 79 2d 3e 70 6f 73 | 20 72 65 73 75 6c 74 69 |ray->pos| resulti|
|00000550| 6e 67 20 69 6e 20 68 69 | 74 70 6f 73 2e 79 0a 3e |ng in hi|tpos.y.>|
|00000560| 20 62 65 69 6e 67 20 6e | 65 67 61 74 69 76 65 20 | being n|egative |
|00000570| 5b 2e 2e 2e 5d 0a 0a 54 | 68 69 73 20 69 73 20 61 |[...]..T|his is a|
|00000580| 20 62 75 67 20 69 6e 20 | 34 2e 30 2e 36 20 2d 2d | bug in |4.0.6 --|
|00000590| 20 73 65 65 20 74 68 65 | 20 61 74 74 61 63 68 65 | see the| attache|
|000005a0| 64 20 62 75 67 66 69 78 | 2e 20 20 49 6e 20 73 68 |d bugfix|. In sh|
|000005b0| 6f 72 74 2c 20 74 68 65 | 0a 65 6e 74 69 72 65 20 |ort, the|.entire |
|000005c0| 22 65 6c 73 65 22 20 63 | 6c 61 75 73 65 20 69 6e |"else" c|lause in|
|000005d0| 20 74 68 65 20 48 46 20 | 62 62 6f 78 20 74 65 73 | the HF |bbox tes|
|000005e0| 74 20 69 73 20 62 6f 67 | 75 73 2e 20 20 4e 75 6b |t is bog|us. Nuk|
|000005f0| 65 20 69 74 2e 0a 0a 3e | 41 20 66 65 77 20 71 75 |e it...>|A few qu|
|00000600| 65 73 74 69 6f 6e 73 20 | 2d 2d 20 20 57 68 61 74 |estions |-- What|
|00000610| 20 69 73 20 74 68 65 20 | 61 63 74 75 61 6c 20 70 | is the |actual p|
|00000620| 75 72 70 6f 73 65 20 6f | 66 20 6d 69 6e 64 69 73 |urpose o|f mindis|
|00000630| 74 3f 20 20 49 20 77 61 | 73 0a 3e 75 6e 64 65 72 |t? I wa|s.>under|
|00000640| 20 74 68 65 20 69 6d 70 | 72 65 73 73 69 6f 6e 20 | the imp|ression |
|00000650| 74 68 61 74 20 69 74 20 | 77 61 73 20 61 20 22 66 |that it |was a "f|
|00000660| 75 64 67 65 22 20 66 61 | 63 74 6f 72 20 74 6f 20 |udge" fa|ctor to |
|00000670| 6b 65 65 70 20 72 61 79 | 73 20 62 65 69 6e 67 20 |keep ray|s being |
|00000680| 66 69 72 65 64 0a 3e 6f | 66 66 20 61 6e 20 6f 62 |fired.>o|ff an ob|
|00000690| 6a 65 63 74 20 66 72 6f | 6d 20 68 69 74 74 69 6e |ject fro|m hittin|
|000006a0| 67 20 74 68 61 74 20 6f | 62 6a 65 63 74 20 61 67 |g that o|bject ag|
|000006b0| 61 69 6e 20 28 64 75 65 | 20 74 6f 20 72 6f 75 6e |ain (due| to roun|
|000006c0| 64 20 6f 66 66 20 65 72 | 72 6f 72 73 29 2e 20 20 |d off er|rors). |
|000006d0| 57 69 74 68 0a 3e 43 53 | 47 20 6f 62 6a 65 63 74 |With.>CS|G object|
|000006e0| 73 2c 20 69 73 20 6d 69 | 6e 64 69 73 74 20 73 75 |s, is mi|ndist su|
|000006f0| 70 70 6f 73 65 64 20 74 | 6f 20 68 65 6c 70 20 6e |pposed t|o help n|
|00000700| 61 72 72 6f 77 20 74 68 | 65 20 72 61 6e 67 65 20 |arrow th|e range |
|00000710| 62 65 69 6e 67 20 73 65 | 61 72 63 68 65 64 0a 3e |being se|arched.>|
|00000720| 28 69 2e 65 2e 20 6f 6e | 6c 79 20 6c 6f 6f 6b 20 |(i.e. on|ly look |
|00000730| 66 6f 72 20 74 68 65 20 | 6f 62 6a 65 63 74 73 20 |for the |objects |
|00000740| 62 65 74 77 65 65 6e 20 | 6d 69 6e 64 69 73 74 20 |between |mindist |
|00000750| 61 6e 64 20 6d 61 78 64 | 69 73 74 20 72 61 74 68 |and maxd|ist rath|
|00000760| 65 72 20 74 68 61 6e 0a | 3e 66 72 6f 6d 20 30 20 |er than.|>from 0 |
|00000770| 28 6f 72 20 45 50 53 49 | 4c 4f 4e 29 20 74 6f 20 |(or EPSI|LON) to |
|00000780| 6d 61 78 64 69 73 74 20 | 28 73 69 6e 63 65 20 74 |maxdist |(since t|
|00000790| 68 65 72 65 20 69 73 20 | 73 6f 6d 65 74 68 69 6e |here is |somethin|
|000007a0| 67 20 63 6c 6f 73 65 72 | 20 61 74 20 6d 69 6e 64 |g closer| at mind|
|000007b0| 69 73 74 3f 3f 29 29 2e | 0a 0a 59 75 70 2c 20 65 |ist??)).|..Yup, e|
|000007c0| 78 61 63 74 6c 79 2e 20 | 20 54 68 65 20 69 6e 74 |xactly. | The int|
|000007d0| 65 72 73 65 63 74 69 6f | 6e 20 72 6f 75 74 69 6e |ersectio|n routin|
|000007e0| 65 73 20 61 72 65 20 73 | 75 70 70 6f 73 65 64 20 |es are s|upposed |
|000007f0| 74 6f 20 72 65 74 75 72 | 6e 20 74 68 65 0a 63 6c |to retur|n the.cl|
|00000800| 6f 73 65 73 74 20 69 6e | 74 65 72 73 65 63 74 69 |osest in|tersecti|
|00000810| 6f 6e 20 62 65 74 77 68 | 65 65 6e 20 22 6d 69 6e |on betwh|een "min|
|00000820| 64 69 73 74 22 20 61 6e | 64 20 22 6d 61 78 64 69 |dist" an|d "maxdi|
|00000830| 73 74 22 20 61 6c 6f 6e | 67 20 74 68 65 20 72 61 |st" alon|g the ra|
|00000840| 79 0a 0a 43 72 61 69 67 | 0a 0a 2d 2d 2d 0a 0a 49 |y..Craig|..---..I|
|00000850| 27 76 65 20 64 69 73 63 | 6f 76 65 72 65 64 20 61 |'ve disc|overed a|
|00000860| 20 62 75 67 20 69 6e 20 | 72 61 79 73 68 61 64 65 | bug in |rayshade|
|00000870| 27 73 20 68 65 69 67 68 | 74 66 69 65 6c 64 20 72 |'s heigh|tfield r|
|00000880| 65 6e 64 65 72 69 6e 67 | 20 63 6f 64 65 2e 0a 54 |endering| code..T|
|00000890| 68 69 73 20 62 75 67 20 | 63 6f 75 6c 64 20 63 61 |his bug |could ca|
|000008a0| 75 73 65 20 72 61 79 73 | 68 61 64 65 20 74 6f 20 |use rays|hade to |
|000008b0| 64 75 6d 70 20 63 6f 72 | 65 2c 20 65 73 70 65 63 |dump cor|e, espec|
|000008c0| 69 61 6c 6c 79 20 77 68 | 65 6e 0a 72 65 6e 64 65 |ially wh|en.rende|
|000008d0| 72 69 6e 67 20 74 72 61 | 6e 73 70 61 72 65 6e 74 |ring tra|nsparent|
|000008e0| 20 68 65 69 67 68 74 20 | 66 69 65 6c 64 73 20 6f | height |fields o|
|000008f0| 72 20 68 65 69 67 68 74 | 66 69 65 6c 64 73 20 74 |r height|fields t|
|00000900| 68 61 74 0a 63 61 73 74 | 20 22 6c 6f 6e 67 22 20 |hat.cast| "long" |
|00000910| 73 68 61 64 6f 77 73 2e | 0a 0a 54 68 65 20 66 69 |shadows.|..The fi|
|00000920| 78 20 77 69 6c 6c 20 61 | 70 70 65 61 72 20 69 6e |x will a|ppear in|
|00000930| 20 74 68 65 20 6e 65 78 | 74 20 72 65 6c 65 61 73 | the nex|t releas|
|00000940| 65 2e 20 20 49 66 20 79 | 6f 75 20 77 69 73 68 20 |e. If y|ou wish |
|00000950| 74 6f 20 66 69 78 0a 74 | 68 65 20 62 75 67 20 62 |to fix.t|he bug b|
|00000960| 65 66 6f 72 65 20 74 68 | 65 6e 2c 20 65 64 69 74 |efore th|en, edit|
|00000970| 20 6c 69 62 72 61 79 2f | 6c 69 62 6f 62 6a 2f 68 | libray/|libobj/h|
|00000980| 66 2e 63 2e 20 20 4c 69 | 6e 65 73 20 32 30 32 2d |f.c. Li|nes 202-|
|00000990| 32 31 34 20 72 65 61 64 | 3a 0a 0a 20 20 20 20 20 |214 read|:.. |
|000009a0| 20 20 20 2f 2a 0a 20 20 | 20 20 20 20 20 20 20 2a | /*. | *|
|000009b0| 20 46 69 6e 64 20 77 68 | 65 72 65 20 77 65 20 68 | Find wh|ere we h|
|000009c0| 69 74 20 74 68 65 20 68 | 66 20 63 75 62 65 2e 0a |it the h|f cube..|
|000009d0| 20 20 20 20 20 20 20 20 | 20 2a 2f 0a 20 20 20 20 | | */. |
|000009e0| 20 20 20 20 56 65 63 41 | 64 64 53 63 61 6c 65 64 | VecA|ddScaled|
|000009f0| 28 72 61 79 2d 3e 70 6f | 73 2c 20 6d 69 6e 64 69 |(ray->po|s, mindi|
|00000a00| 73 74 2c 20 72 61 79 2d | 3e 64 69 72 2c 20 26 68 |st, ray-|>dir, &h|
|00000a10| 69 74 70 6f 73 29 3b 0a | 20 20 20 20 20 20 20 20 |itpos);.| |
|00000a20| 69 66 20 28 4f 75 74 4f | 66 42 6f 75 6e 64 73 28 |if (OutO|fBounds(|
|00000a30| 26 68 69 74 70 6f 73 2c | 20 68 66 2d 3e 62 6f 75 |&hitpos,| hf->bou|
|00000a40| 6e 64 62 6f 78 29 29 20 | 7b 0a 20 20 20 20 20 20 |ndbox)) |{. |
|00000a50| 20 20 20 20 20 20 20 20 | 20 20 6f 66 66 73 65 74 | | offset|
|00000a60| 20 3d 20 2a 6d 61 78 64 | 69 73 74 3b 0a 20 20 20 | = *maxd|ist;. |
|00000a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if |
|00000a80| 28 21 42 6f 75 6e 64 73 | 49 6e 74 65 72 73 65 63 |(!Bounds|Intersec|
|00000a90| 74 28 72 61 79 2c 20 68 | 66 2d 3e 62 6f 75 6e 64 |t(ray, h|f->bound|
|00000aa0| 62 6f 78 2c 20 6d 69 6e | 64 69 73 74 2c 20 26 6f |box, min|dist, &o|
|00000ab0| 66 66 73 65 74 29 29 0a | 20 20 20 20 20 20 20 20 |ffset)).| |
|00000ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ad0| 72 65 74 75 72 6e 20 46 | 41 4c 53 45 3b 0a 20 20 |return F|ALSE;. |
|00000ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 68 69 | | hi|
|00000af0| 74 70 6f 73 2e 78 20 3d | 20 72 61 79 2d 3e 70 6f |tpos.x =| ray->po|
|00000b00| 73 2e 78 20 2b 20 72 61 | 79 2d 3e 64 69 72 2e 78 |s.x + ra|y->dir.x|
|00000b10| 20 2a 20 6f 66 66 73 65 | 74 3b 0a 20 20 20 20 20 | * offse|t;. |
|00000b20| 20 20 20 20 20 20 20 20 | 20 20 20 68 69 74 70 6f | | hitpo|
|00000b30| 73 2e 79 20 3d 20 72 61 | 79 2d 3e 70 6f 73 2e 79 |s.y = ra|y->pos.y|
|00000b40| 20 2b 20 72 61 79 2d 3e | 64 69 72 2e 79 20 2a 20 | + ray->|dir.y * |
|00000b50| 6f 66 66 73 65 74 3b 0a | 20 20 20 20 20 20 20 20 |offset;.| |
|00000b60| 20 20 20 20 20 20 20 20 | 68 69 74 70 6f 73 2e 7a | |hitpos.z|
|00000b70| 20 3d 20 72 61 79 2d 3e | 70 6f 73 2e 7a 20 2b 20 | = ray->|pos.z + |
|00000b80| 72 61 79 2d 3e 64 69 72 | 2e 7a 20 2a 20 6f 66 66 |ray->dir|.z * off|
|00000b90| 73 65 74 3b 0a 20 20 20 | 20 20 20 20 20 7d 20 65 |set;. | } e|
|00000ba0| 6c 73 65 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |lse. | |
|00000bb0| 20 20 20 20 68 69 74 70 | 6f 73 20 3d 20 72 61 79 | hitp|os = ray|
|00000bc0| 2d 3e 70 6f 73 3b 0a 0a | 0a 54 6f 20 66 69 78 20 |->pos;..|.To fix |
|00000bd0| 74 68 65 20 62 75 67 2c | 20 72 65 6d 6f 76 65 20 |the bug,| remove |
|00000be0| 74 68 65 20 22 65 6c 73 | 65 22 20 63 61 73 65 20 |the "els|e" case |
|00000bf0| 65 6e 74 69 72 65 6c 79 | 2c 20 74 6f 20 6d 61 6b |entirely|, to mak|
|00000c00| 65 20 74 68 65 0a 62 6c | 6f 63 6b 20 6f 66 20 63 |e the.bl|ock of c|
|00000c10| 6f 64 65 20 72 65 61 64 | 3a 0a 0a 0a 20 20 20 20 |ode read|:... |
|00000c20| 20 20 20 20 2f 2a 0a 20 | 20 20 20 20 20 20 20 20 | /*. | |
|00000c30| 2a 20 46 69 6e 64 20 77 | 68 65 72 65 20 77 65 20 |* Find w|here we |
|00000c40| 68 69 74 20 74 68 65 20 | 68 66 20 63 75 62 65 2e |hit the |hf cube.|
|00000c50| 0a 20 20 20 20 20 20 20 | 20 20 2a 2f 0a 20 20 20 |. | */. |
|00000c60| 20 20 20 20 20 56 65 63 | 41 64 64 53 63 61 6c 65 | Vec|AddScale|
|00000c70| 64 28 72 61 79 2d 3e 70 | 6f 73 2c 20 6d 69 6e 64 |d(ray->p|os, mind|
|00000c80| 69 73 74 2c 20 72 61 79 | 2d 3e 64 69 72 2c 20 26 |ist, ray|->dir, &|
|00000c90| 68 69 74 70 6f 73 29 3b | 0a 20 20 20 20 20 20 20 |hitpos);|. |
|00000ca0| 20 69 66 20 28 4f 75 74 | 4f 66 42 6f 75 6e 64 73 | if (Out|OfBounds|
|00000cb0| 28 26 68 69 74 70 6f 73 | 2c 20 68 66 2d 3e 62 6f |(&hitpos|, hf->bo|
|00000cc0| 75 6e 64 62 6f 78 29 29 | 20 7b 0a 20 20 20 20 20 |undbox))| {. |
|00000cd0| 20 20 20 20 20 20 20 20 | 20 20 20 6f 66 66 73 65 | | offse|
|00000ce0| 74 20 3d 20 2a 6d 61 78 | 64 69 73 74 3b 0a 20 20 |t = *max|dist;. |
|00000cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | | if|
|00000d00| 20 28 21 42 6f 75 6e 64 | 73 49 6e 74 65 72 73 65 | (!Bound|sInterse|
|00000d10| 63 74 28 72 61 79 2c 20 | 68 66 2d 3e 62 6f 75 6e |ct(ray, |hf->boun|
|00000d20| 64 62 6f 78 2c 20 6d 69 | 6e 64 69 73 74 2c 20 26 |dbox, mi|ndist, &|
|00000d30| 6f 66 66 73 65 74 29 29 | 0a 20 20 20 20 20 20 20 |offset))|. |
|00000d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d50| 20 72 65 74 75 72 6e 20 | 46 41 4c 53 45 3b 0a 20 | return |FALSE;. |
|00000d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 68 | | h|
|00000d70| 69 74 70 6f 73 2e 78 20 | 3d 20 72 61 79 2d 3e 70 |itpos.x |= ray->p|
|00000d80| 6f 73 2e 78 20 2b 20 72 | 61 79 2d 3e 64 69 72 2e |os.x + r|ay->dir.|
|00000d90| 78 20 2a 20 6f 66 66 73 | 65 74 3b 0a 20 20 20 20 |x * offs|et;. |
|00000da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 68 69 74 70 | | hitp|
|00000db0| 6f 73 2e 79 20 3d 20 72 | 61 79 2d 3e 70 6f 73 2e |os.y = r|ay->pos.|
|00000dc0| 79 20 2b 20 72 61 79 2d | 3e 64 69 72 2e 79 20 2a |y + ray-|>dir.y *|
|00000dd0| 20 6f 66 66 73 65 74 3b | 0a 20 20 20 20 20 20 20 | offset;|. |
|00000de0| 20 20 20 20 20 20 20 20 | 20 68 69 74 70 6f 73 2e | | hitpos.|
|00000df0| 7a 20 3d 20 72 61 79 2d | 3e 70 6f 73 2e 7a 20 2b |z = ray-|>pos.z +|
|00000e00| 20 72 61 79 2d 3e 64 69 | 72 2e 7a 20 2a 20 6f 66 | ray->di|r.z * of|
|00000e10| 66 73 65 74 3b 0a 20 20 | 20 20 20 20 20 20 7d 0a |fset;. | }.|
|00000e20| 0a 0a 52 75 6e 20 22 6d | 61 6b 65 22 2c 20 6d 61 |..Run "m|ake", ma|
|00000e30| 6b 69 6e 67 20 73 75 72 | 65 20 74 68 61 74 20 72 |king sur|e that r|
|00000e40| 61 79 73 68 61 64 65 20 | 28 61 6e 64 20 72 61 79 |ayshade |(and ray|
|00000e50| 70 61 69 6e 74 2c 20 69 | 66 20 61 70 70 72 6f 70 |paint, i|f approp|
|00000e60| 72 69 61 74 65 29 0a 61 | 72 65 20 72 65 2d 6c 69 |riate).a|re re-li|
|00000e70| 6e 6b 65 64 2c 20 61 6e | 64 20 79 6f 75 20 73 68 |nked, an|d you sh|
|00000e80| 6f 75 6c 64 20 62 65 20 | 61 6c 6c 20 73 65 74 2e |ould be |all set.|
|00000e90| 0a 0a 0a 2d 2d 20 0a 4e | 69 63 6b 20 28 4e 69 6b |...-- .N|ick (Nik|
|00000ea0| 6f 6c 61 6f 73 29 20 46 | 6f 74 69 73 20 20 20 20 |olaos) F|otis |
|00000eb0| 20 20 20 20 20 4e 61 74 | 69 6f 6e 61 6c 20 54 65 | Nat|ional Te|
|00000ec0| 63 68 6e 69 63 61 6c 20 | 55 6e 69 76 2e 20 6f 66 |chnical |Univ. of|
|00000ed0| 20 41 74 68 65 6e 73 2c | 20 47 72 65 65 63 65 0a | Athens,| Greece.|
|00000ee0| 48 4f 4d 45 3a 20 31 36 | 20 45 73 70 65 72 69 64 |HOME: 16| Esperid|
|00000ef0| 6f 6e 20 53 74 2e 2c 20 | 20 20 20 20 20 20 49 6e |on St., | In|
|00000f00| 74 65 72 4e 65 74 20 3a | 20 6e 66 6f 74 69 73 40 |terNet :| nfotis@|
|00000f10| 74 68 65 73 65 61 73 2e | 6e 74 75 61 2e 67 72 0a |theseas.|ntua.gr.|
|00000f20| 20 20 20 20 20 20 48 61 | 6c 61 6e 64 72 69 2c 20 | Ha|landri, |
|00000f30| 47 52 20 2d 20 31 35 32 | 20 33 32 20 20 20 55 55 |GR - 152| 32 UU|
|00000f40| 43 50 3a 20 20 20 20 6d | 63 73 75 6e 21 70 79 74 |CP: m|csun!pyt|
|00000f50| 68 69 61 21 74 68 65 73 | 65 61 73 21 6e 66 6f 74 |hia!thes|eas!nfot|
|00000f60| 69 73 0a 20 20 20 20 20 | 20 41 74 68 65 6e 73 2c |is. | Athens,|
|00000f70| 20 47 52 45 45 43 45 20 | 20 20 20 20 20 20 20 20 | GREECE | |
|00000f80| 20 46 41 58 3a 20 28 2b | 33 30 20 31 29 20 37 37 | FAX: (+|30 1) 77|
|00000f90| 20 38 34 20 35 37 38 0a | 0a 55 53 45 4e 45 54 20 | 84 578.|.USENET |
|00000fa0| 45 64 69 74 6f 72 20 6f | 66 20 63 6f 6d 70 2e 67 |Editor o|f comp.g|
|00000fb0| 72 61 70 68 69 63 73 20 | 52 65 73 6f 75 72 63 65 |raphics |Resource|
|00000fc0| 20 4c 69 73 74 69 6e 67 | 20 61 6e 64 20 73 6f 63 | Listing| and soc|
|00000fd0| 2e 63 75 6c 74 75 72 65 | 2e 67 72 65 65 63 65 20 |.culture|.greece |
|00000fe0| 46 41 51 0a 4e 54 55 41 | 2f 55 41 20 41 43 4d 20 |FAQ.NTUA|/UA ACM |
|00000ff0| 53 74 75 64 65 6e 74 20 | 43 68 61 70 74 65 72 20 |Student |Chapter |
|00001000| 43 68 61 69 72 20 2d 20 | 77 65 27 72 65 20 6f 72 |Chair - |we're or|
|00001010| 67 61 6e 69 7a 69 6e 67 | 20 61 20 73 6d 61 6c 6c |ganizing| a small|
|00001020| 20 63 6f 6e 66 65 72 65 | 6e 63 65 0a 20 20 20 20 | confere|nce. |
|00001030| 20 20 20 20 69 6e 20 43 | 6f 6d 70 2e 20 47 72 61 | in C|omp. Gra|
|00001040| 70 68 69 63 73 2c 20 63 | 61 6c 6c 20 69 66 20 79 |phics, c|all if y|
|00001050| 6f 75 27 72 65 20 69 6e | 74 65 72 65 73 74 65 64 |ou're in|terested|
|00001060| 20 74 6f 20 70 61 72 74 | 69 63 69 70 61 74 65 2e | to part|icipate.|
|00001070| 0a 0a | |.. | |
+--------+-------------------------+-------------------------+--------+--------+